<div class="section table_section">
<div class="section_extra">
<ul class="ul_buttons">
		<li><span class="button green_btn"><span><span><?php echo $html->link(__('Edit User', true), array('action' => 'edit', $user['User']['id'])); ?> </span> </span> </span></li>
		<li><span class="button green_btn"><span><span><?php echo $html->link(__('Delete User', true), array('action' => 'delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ?></span> </span> </span> </li>
		<li><span class="button green_btn"><span><span><?php echo $html->link(__('List Users', true), array('action' => 'index')); ?> </span> </span> </span></li>
		<li><span class="button green_btn"><span><span><?php echo $html->link(__('New User', true), array('action' => 'add')); ?></span> </span> </span> </li>
		<li><span class="button green_btn"><span><span><?php echo $html->link(__('List Groups', true), array('controller' => 'groups', 'action' => 'index')); ?> </span> </span> </span> </li>
		<li><span class="button green_btn"><span><span><?php echo $html->link(__('New Group', true), array('controller' => 'groups', 'action' => 'add')); ?></span> </span> </span>  </li>
</ul>
<div class="clear"></div>
</div>
<div class="section_inner">
<div class="title_wrapper">
<h2><?php  __('User');?></h2><div class="right">&nbsp;</div>
</div>
<div class="section_content">
<div class="model_detail">
<dl>
<?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['user_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['email_address']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['password']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Active'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['active']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $user['User']['modified']; ?>
			&nbsp;
		</dd>
</dl>
</div>
<div class="clear"></div>

</div>
</div>
</div>



<div class="section table_section">
<div class="section_extra">
<ul class="ul_buttons">
	<li><span class="button green_btn"><span><span>
	<?php echo $html->link(__('New Group', true), array('controller' => 'groups', 'action' => 'add'));?>	</span></span></span></li>
</ul>
<div class="clear"></div>
</div>
<div class="section_inner">
<div class="title_wrapper">
<h2><?php __('Related Groups');?></h2><div class="right">&nbsp;</div>
</div>
<div class="section_content">
<div class="table_wrapper">
<div class="table_wrapper_inner"><?php if (!empty($user['Group'])):?>
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
			<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
		<?php
					$i = 0;
					foreach ($user['Group'] as $group):
						$class = null;
						if ($i++ % 2 == 0) {
							$class = ' class="altrow"';
						}
					?>
		<tr<?php echo $class;?>>
			<td class="first_td"><?php echo $group['id'];?></td>
			<td><?php echo $html->link($group['name'], array('controller' => 'groups', 'action' => 'view', $group['id']),array('class'=>'product_name')); ?></td>
			<td><?php echo $group['created'];?></td>
			<td><?php echo $group['modified'];?></td>
			<td>
<div class="actions_menu"><ul>				<li><?php echo $html->link(__('Edit', true), array('controller' => 'groups', 'action' => 'edit', $group['id']),array('class'=>'edit')); ?></li> 
				<li><?php echo $html->link(__('Delete', true), array('controller' => 'groups', 'action' => 'delete', $group['id']),  array('class'=>'delete'), sprintf(__('Are you sure you want to delete # %s?', true), $group['id'])); ?></li>
</ul></div> 
			</td>
		</tr>
	<?php endforeach; ?>
</table>
	<?php endif; ?>

</div>
</div>
<div class="clear"></div>

</div>
</div>
</div>

